<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>RectAreaLightNode - Three.js Docs</title>
	<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
	<script src="../scripts/highlight.min.js"></script>
	<link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
	<link type="text/css" rel="stylesheet" href="../styles/page.css">
</head>
<body>
		<p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="Node.html">Node</a> → <a href="LightingNode.html">LightingNode</a> → <a href="AnalyticLightNode.html">AnalyticLightNode</a> → </p>
	<h1 translate="no">RectAreaLightNode</h1>
		<section>
			<header>
				<div class="class-description"><p>Module for representing rect area lights as nodes.</p></div>
			</header>
			<article>
				<div class="container-overview">
					<h2>Constructor</h2>
					<h3 class="name name-method" id="RectAreaLightNode" translate="no">new <a href="#RectAreaLightNode">RectAreaLightNode</a><span class="signature">( light : <span class="param-type"><a href="RectAreaLight.html">RectAreaLight</a></span> )</span> </h3>
					<div class="method">
						<div class="description">
							<p>Constructs a new rect area light node.</p>
						</div>
						<table class="params">
							<tbody>
								<tr>
									<td class="name">
										<strong>light</strong>
									</td>
									<td class="description last">
										<p>The rect area light source.</p>
										<p>Default is <code>null</code>.</p>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				<h2 class="subsection-title">Properties</h2>
				<div class="member">
					<h3 class="name" id="halfHeight" translate="no">.<a href="#halfHeight">halfHeight</a><span class="type-signature"> : <a href="UniformNode.html">UniformNode</a>.&lt;vec3></span> </h3>
					<div class="description">
						<p>Uniform node representing the half height of the are light.</p>
					</div>
				</div>
				<div class="member">
					<h3 class="name" id="halfWidth" translate="no">.<a href="#halfWidth">halfWidth</a><span class="type-signature"> : <a href="UniformNode.html">UniformNode</a>.&lt;vec3></span> </h3>
					<div class="description">
						<p>Uniform node representing the half width of the are light.</p>
					</div>
				</div>
				<div class="member">
					<h3 class="name" id="updateType" translate="no">.<a href="#updateType">updateType</a><span class="type-signature"> : string</span> </h3>
					<div class="description">
						<p>The <code>updateType</code> is set to <code>NodeUpdateType.RENDER</code> since the light
relies on <code>viewMatrix</code> which might vary per render call.</p>
						<p>Default is <code>'render'</code>.</p>
					</div>
						<dl class="details">
							<dt class="tag-overrides"><strong>Overrides:</strong> <a href="AnalyticLightNode.html#updateType">AnalyticLightNode#updateType</a></dt>
						</dl>
				</div>
				<h2 class="subsection-title">Methods</h2>
					<h3 class="name name-method" id="update" translate="no">.<a href="#update">update</a><span class="signature">( frame : <span class="param-type"><a href="NodeFrame.html">NodeFrame</a></span> )</span> </h3>
					<div class="method">
						<div class="description">
							<p>Overwritten to updated rect area light specific uniforms.</p>
						</div>
						<table class="params">
							<tbody>
								<tr>
									<td class="name">
										<strong>frame</strong>
									</td>
									<td class="description last">
										<p>A reference to the current node frame.</p>
									</td>
								</tr>
							</tbody>
						</table>
						<dl class="details">
							<dt class="tag-overrides"><strong>Overrides:</strong> <a href="AnalyticLightNode.html#update">AnalyticLightNode#update</a></dt>
						</dl>
					</div>
				<h2 class="subsection-title">Static Methods</h2>
					<h3 class="name name-method" id=".setLTC" translate="no">.<a href="#.setLTC">setLTC</a><span class="signature">( ltc : <span class="param-type"><a href="RectAreaLightTexturesLib.html">RectAreaLightTexturesLib</a></span> )</span> </h3>
					<div class="method">
						<div class="description">
							<p>Used to configure the internal BRDF approximation texture data.</p>
						</div>
						<table class="params">
							<tbody>
								<tr>
									<td class="name">
										<strong>ltc</strong>
									</td>
									<td class="description last">
										<p>The BRDF approximation texture data.</p>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				<h2 class="subsection-title">Source</h2>
				<p>
					<a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/lighting/RectAreaLightNode.js" translate="no" target="_blank" rel="noopener">src/nodes/lighting/RectAreaLightNode.js</a>
				</p>
			</article>
		</section>
<script src="../scripts/linenumber.js"></script>
<script src="../scripts/page.js"></script>
</body>
</html>